package com.dlshouwen.core.base.mail;

import javax.mail.Authenticator;
import javax.mail.PasswordAuthentication;

/**
 * 用户名密码校验
 * @author cuixubin
 *
 */
public class MyAuthenticator extends Authenticator {
	
	String userName = null;
	String password = null;
	public MyAuthenticator() {
	}
	public MyAuthenticator(String username, String password) {
		this.userName = username;
		this.password = password;
	}
	protected PasswordAuthentication getPasswordAuthentication() {
		return new PasswordAuthentication(userName, password);
	}
}